package com.dianping.cat.home.user.entity;

import com.dianping.cat.home.user.BaseEntity;
import com.dianping.cat.home.user.IVisitor;





public class User
  extends BaseEntity<User>
{
  private String m_id;
  private int m_role;

  public User() {}

/* 18 */   public User(String id) { this.m_id = id; }




/* 23 */   public void accept(IVisitor visitor) { visitor.visitUser(this); }



  public boolean equals(Object obj) {
/* 28 */     if (obj instanceof User) {
/* 29 */       User _o = (User)obj;

/* 31 */       if (!equals(getId(), _o.getId())) {
/* 32 */         return false;
      }

/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public String getId() { return this.m_id; }



/* 46 */   public int getRole() { return this.m_role; }



  public int hashCode() {
/* 51 */     int hash = 0;

/* 53 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }




  public void mergeAttributes(User other) {
/* 60 */     assertAttributeEquals(other, "user", "id", this.m_id, other.getId());

/* 62 */     this.m_role = other.getRole();
  }

  public User setId(String id) {
/* 66 */     this.m_id = id;
/* 67 */     return this;
  }

  public User setRole(int role) {
/* 71 */     this.m_role = role;
/* 72 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/user/entity/User.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */